/**
 * Copyright (c) 2018, Alex. All rights reserved.
 */
package com.oschina.bottle.convert;

/**
 * 转换工具类
 *
 * @author <a href="mailto:zhongchao@gegejia.com">zhong</a>
 * @version 1.0 2018/1/18
 * @since 1.0
 */
public interface Converter<S, T> {

    /**
     * 转换接口
     *
     * @param source        待转换对象
     * @param targetClass   转换的目标类对象
     * @return  返回目标类型的实体
     */
    T convert(S source, Class<T> targetClass);
}
